package services

import (
	"ssims/dao"
	"ssims/models"
)

func GetAllStatus(status map[string]interface{}) (error, []models.Status, int64) {
	err, statusData, total := dao.GetAllStatus(status)
	return err, statusData, total
}

func DelStatus(id string) error {
	err := dao.DelStatus(id)
	return err
}

func UpdateStatus(status models.Status) error {
	err := dao.UpdateStatus(status)
	return err
}

func AddStatus(status models.Status) error {
	err := dao.AddStatus(status)
	return err
}
